# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net"
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libowfat
pkgver=0.32
pkgrel=0
pkgdesc="Reimplementation of libdjbr"
url="http://www.fefe.de/libowfat/"
arch="all"
license="GPL"
depends=""
makedepends=""
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.fefe.de/$pkgname/$pkgname-$pkgver.tar.xz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	make CFLAGS="-I. ${CFLAGS}"
}

package() {
	cd "$builddir"
	make prefix="$pkgdir"/usr \
		MAN3DIR="$pkgdir"/usr/share/man/man3 \
		install

	# buffer manpage conflicts with openssl
	mv "$pkgdir"/usr/share/man/man3/buffer.3 \
		"$pkgdir"/usr/share/man/man3/owfatbuffer.3
}

sha512sums="c762a1aa27dfb30e2f6da67d1ad16da03d301b2e3cce33c83b69103183a6689a494c8cf8d7d4e26ad5b22130e4e0560d5f3ef6f44b14d706f10e2300ce11ff3b  libowfat-0.32.tar.xz"
